import com.mlh.dao.BookDao;
import com.mlh.dao.impl.BookDaoImpl;
import com.mlh.service.BookService;
import com.mlh.service.impl.BookServiceImpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppForLifeCycle {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        BookService bs= (BookService) ctx.getBean("bookService");
        BookDao bd=(BookDao) ctx.getBean("bookDao");
    }
}
